﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace BLL
{
    /// <summary>
    /// 推广系统 推广员信息
    /// </summary>
    public class Spreader
    {
        #region code
        public Spreader()
        { }
        DAL.Spreader dal = new DAL.Spreader();
        public bool SpreaderAdd(MODEL.Spreader model)
        {
            return dal.SpreaderAdd(model);
        }
        public bool SpreaderDel(string spreaderId)
        {
            return dal.SpreaderDel(spreaderId);
        }
        public bool SpreaderUpdatePassword(MODEL.Spreader model)
        {
            return dal.SpreaderUpdatePassword(model);
        }
        public bool SpreaderUpdateInformation(MODEL.Spreader model)
        {
            return dal.SpreaderUpdateInformation(model);
        }
        public bool SpreaderUpdateBank(MODEL.Spreader model)
        {
            return dal.SpreaderUpdateBank(model);
        }
        public bool SpreaderUpdateLogon(MODEL.Spreader model)
        {
            return dal.SpreaderUpdateLogon(model);
        }
        public bool SpreaderUpdateQuestion(MODEL.Spreader model)
        {
            return dal.SpreaderUpdateQuestion(model);
        }
        public bool SpreaderLogon(string userName, string passWord)
        {
            return dal.SpreaderLogon(userName, passWord);
        }
        public DataSet SpreadList()
        {
            return dal.SpreadList();
        }
        public DataSet SpreadList(string ID)
        {
            return dal.SpreadList(ID);
        }
        public string GetSpreadID()
        {
            return dal.GetSpreaderID();
        }
        public string GetSpreadIdByName(string userName)
        {
            return dal.GetSpreadIdByName(userName);
        }
        #endregion
    }
    /// <summary>
    /// 推广系统 网吧信息
    /// </summary>
    public class Spreadip
    {
        public Spreadip()
        { }
        DAL.Spreadip dal = new DAL.Spreadip();
        public bool SpreadipAdd(MODEL.SpreadIP model)
        {
            return dal.SpreadipAdd(model);
        }
        public bool SpreadipDel(int ipId)
        {
            return dal.SpreadipDel(ipId);
        }
        public bool SpreadipUpdate(MODEL.SpreadIP model)
        {
            return dal.SpreadipUpdate(model);
        }
        public DataSet SpreadipList()
        {
            return dal.SpreadipList();
        }
    }
    /// <summary>
    /// 推广系统 密保问题
    /// </summary>
    public class SpreadQuestion
    {
        public SpreadQuestion()
        { }
        DAL.SpreadQuestion dal = new DAL.SpreadQuestion();
        public bool SpreadQuestionAdd(MODEL.SpreadQuestion model)
        {
            return dal.SpreadQuestionAdd(model);
        }
        public DataSet SpreadQuestionList()
        {
            return dal.SpreadQuestionList();
        }
    }
    /// <summary>
    /// 推广系统 推广信息主表
    /// </summary>
    public class SpreadMaster
    {
        public SpreadMaster()
        { }
        DAL.SpreadMaster dal = new DAL.SpreadMaster();
        public bool SpreadMasterAdd(MODEL.SpreadMaster model)
        {
            return dal.SpreadMasterAdd(model);
        }
        public DataSet SpreadMasterList()
        {
            return dal.SpreadMasterList();
        }
        public DataSet SpreadMasterList(string userId)
        {
            return dal.SpreadMasterList(userId);
        }
    }
    /// <summary>
    /// 推广系统 推广信息副表
    /// </summary>
    public class SpreadDeputy
    {
        public SpreadDeputy()
        { }
        DAL.SpreadDeputy dal = new DAL.SpreadDeputy();
        public bool SpreadDeputyAdd(MODEL.SpreadDeputy model)
        {
            return dal.SpreadDeputyAdd(model);
        }
        public DataSet SpreadDeputyList()
        {
            return dal.SpreadDeputyList();
        }
        public DataSet SpreadDeputyList(MODEL.SpreadDeputy model)
        {
            return dal.SpreadDeputyList(model);
        }
        public bool SpreadMasterUpdate(MODEL.SpreadDeputy model)
        {
            return dal.SpreadMasterUpdate(model);
        }
    }
}
